package com.diaohw.module.log.service.impl;

import com.diaohw.module.log.mapper.DbLogMapper;
import com.diaohw.module.log.mapper.RequestLogMapper;
import com.diaohw.module.log.obj.entity.DbLog;
import com.diaohw.module.log.obj.entity.RequestLog;
import com.diaohw.module.log.service.LogStorageService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class LogStorageImpl implements LogStorageService {
    @Resource
    private RequestLogMapper requestLogMapper;
    @Resource
    private DbLogMapper dbLogMapper;

    @Override
    public void storageHttpLog(RequestLog requestLog) {
        requestLogMapper.insert(requestLog);
    }

    @Override
    public void storageDBLog(DbLog dbLog) {
        dbLogMapper.insert(dbLog);
    }

}
